package com.web.exiaodao.business.entity;

import com.web.exiaodao.business.constant.JConstant;
import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
* @ClassName: MakeMoneyTable 
* @Description: 签到-孝亲币管理定义表
* @author eason
* @date 2015年3月23日 下午1:00:00 
*
 */
@Entity
@Table(name = "tb_xa_makemoneytable")
@ApiModel(value="签到-孝亲币管理定义表")
public class MakeMoneyTable extends BaseEntity{

	private static final long serialVersionUID = 1L;

	/**
	 * {@link JConstant.IntegralTypeEnum}
	 */
	@ApiModelProperty(value="类型（1：签到 2：转盘 3:任务 4：评论  5：分享 6：留言 7:做义工 8:看视频）")
	private Long type;
	@ApiModelProperty(value="赚到钱的金额（消费or赚钱都是正数）,赚到钱的金额（消费or赚钱都是正数）")
	private Double makeMoney_Cost;
	@ApiModelProperty(value="用户id,用户id")
	private Long userId;
	@ApiModelProperty(value="赚钱还是消费（-1:消费；1:赚钱）,赚钱还是消费（-1:消费；1:赚钱）")
	private Integer consumeOrMakeMoney;
	@ApiModelProperty(value="订单号;订单号(订单取消的时候退还积分时候用)")
	private String orderNo;
		
	
	public void setType(Long type){
		this.type=type;
	}
	
	@Column(nullable=true,length=50)
	public Long getType(){
		return type;
	}
	public void setMakeMoney_Cost(Double makeMoney_Cost){
		this.makeMoney_Cost=makeMoney_Cost;
	}
	
	@Column(nullable=true,length=50)
	public Double getMakeMoney_Cost(){
		return makeMoney_Cost;
	}
	public void setUserId(Long userId){
		this.userId=userId;
	}
	
	@Column(nullable=true,length=50)
	public Long getUserId(){
		return userId;
	}
	public void setConsumeOrMakeMoney(Integer consumeOrMakeMoney){
		this.consumeOrMakeMoney=consumeOrMakeMoney;
	}
	
	@Column(nullable=true,length=50)
	public Integer getConsumeOrMakeMoney(){
		return consumeOrMakeMoney;
	}


	@Column(nullable=true,length=50)
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
}
